package com.banmoon.algorithm.leetcode;


public class Question172 {

    public static void main(String[] args) {
        System.out.println(trailingZeroes(20));
    }

    public static int trailingZeroes(int n) {
        int count = 0;
        while(n >= 5) {
            count += n / 5;
            n /= 5;
        }
        return count;
    }

}
